package com.itWaiLong.Utils;

public class ThreadLocalUtil{

    private static final ThreadLocal threadLocal = new ThreadLocal();

    /*设置值*/
    public static <T> void setThreadLocal(T t){
        threadLocal.set(t);
    }

    /*返回值*/
    public static <T>T getThreadLocal(){
        return (T)threadLocal.get();
    }

    /*删除值*/
    public static void removeThreadLocal(){
        threadLocal.remove();
    }

}
